<?PHP $this->_extends('_layouts/default_layout');?>
<?PHP $this->_block('head');?>
<?PHP $this->_endblock();?>
<?PHP $this->_block('contents');?>
<h2> 创建 店铺</h2>


<?php if(isset($error)):?>
<div class="notify">
	<?php foreach($error as $e=>$v){
		switch($e){
			
			case 'password':  echo '  密码错误 . '; break;
			case 'null':  echo '  必要信息未填全 . '; break;
			case 'exist':  echo '  店铺已经被创建 '; break;
			case 'store':  echo '  创建失败 '; break;
		}}
	?>
</div>
<?php endif;?>


<form action="" method="post" enctype="multipart/form-data">
<table	width="90%" class="" >
	<tr><th width="120">密码:</th><td><input type="password" size=20 name="password" value="" ></td><td></td></tr>
	<tr><th width="120">密码 2 :</th><td><input type="password" size=20 name="password2" value="" ></td><td></td></tr>
	<tr><td colspan="3">&nbsp;    </td></tr>
	<tr><th width="120">店铺名:</th><td><input type="text" size=20 name="store_name" value="<?php echo $_ctx->store_name?>" ><?='.'.Q::ini('app_config/BASE_SHOP_DOMAIN')?></td><td>(店铺名, 子域名 )</td></tr>
	<tr><th>店主名:</th><td><input type="text" size=40 name="seller_name" value="<?php echo $_ctx->seller_name?>"></td><td>( 店铺管理员登录名 )</td></tr>
	<tr><th>店主 Email:</th><td><input type="text" size=40 name="seller_email" value="<?php echo $_ctx->seller_email?>"></td><td>()</td></tr>
	
	<tr><th>使用的货币:</th><td><?php echo Q::control('dropdownlist','currency',array(
		'items'=>Helper_Array::toHashmap(Currencies::find('status&1')->getAll()->toArray(),'code','title')
	))?> 
			</td><td>()</td></tr>
	<tr><th>使用的语言:</th><td><?php echo Q::control('dropdownlist','language',array(
		'items'=>Helper_Array::toHashmap(Language::find('status&1')->getAll()->toArray(),'language','title')
	))?>  
			</td><td>()</td></tr>
		
	<tr><th>店铺 标题:</th><td><input type="text" size=40 name="title" value="<?php echo $_ctx->title?>"></td><td>()</td></tr>

	<tr><th>描述:</th><td colspan="2">
		<textarea name="desc" rows="5" cols="60"><?=$_ctx->desc?></textarea>
		<?php //Q::control('wysiwyg','desc',array('value'=>$good->desc,'style'=>'height:300px;width:700px;'))->display()?>
	</td></tr>
	</table>
<div>
	<input type="submit" value="   确定创建    " classs="anniu"> 
	&nbsp;&nbsp;
</div>
</form>
</div>
<?PHP $this->_endblock();?>

